﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;

namespace BanHangCshap.DanhMuc.gkhtdl63
{
    public partial class frmDuan : Form
    {
        public frmDuan()
        {
            InitializeComponent();
        }

        private void
            a()
        {
            //Lay ky tu thap phan cau he thong
            string decimalString = Thread.CurrentThread.CurrentCulture.DateTimeFormat.FullDateTimePattern;
            ////Kien tra co phai so hay Control key hay khong
            //if (Char.IsDigit(e.KeyChar) || Char.IsControl(e.KeyChar)) { }
            //else if (e.KeyChar.ToString() == decimalString && textBox1.Text.IndexOf(decimalString) == -1 && textBox1.Text.Length > 0) { } //Cho nhap luon so thap phan
            //else if (e.KeyChar.ToString() == "-" && textBox1.Text.IndexOf("-") == -1 && textBox1.Text.Length == 0) { } //So am
            //else
            //{
            //    e.Handled = true;
            //} 
        }
    }
}
